package com.hzncc.flowable_diboot.contract.vo;

import com.diboot.core.binding.annotation.BindDict;
import com.diboot.core.binding.annotation.BindField;
import com.diboot.core.vo.LabelValue;
import com.diboot.iam.entity.IamUser;
import com.hzncc.flowable_diboot.contract.entity.FieldMapping;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
/**
* 字段映射 VO定义
* @author MyName
* @version 1.0
* @date 2024-09-03
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class FieldMappingListVO extends FieldMapping  {
private static final long serialVersionUID = 1936311011704552356L;
    /**
    * 数据类型 关联字典选项
    */
    @BindDict(
    type = "mappingDataType",
    field = "dataType"
    )
    private LabelValue dataTypeLabel;

    /**
    * 创建人 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.create_by = id"
     )
    private String createByLabel;

    /**
    * 更新人 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.update_by = id"
     )
    private String updateByLabel;

}